package com.yixiang.np.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;

import com.yixiang.np.service.UserServiceI;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;

@Controller
public class BaseController {
 
    
    @ExceptionHandler({Exception.class})  
    public String exception(Exception e) {  
        System.out.println(e.getMessage());  
        e.printStackTrace();  
        return "/exception";  
    }
 
}
